/**
 * File    : ActivityManager.java
 * Created : 2008-10-10
 * By      : LuHuiguo
 */
package com.luhuiguo.sso.service;

import java.util.List;

import com.luhuiguo.sso.entity.Activity;
import com.luhuiguo.sso.entity.AuthAction;
import com.luhuiguo.sso.entity.Site;
import com.luhuiguo.sso.entity.User;

/**
 * @author LuHuiguo
 * @version $Id: ActivityManager.java 9 2008-10-12 12:51:20Z LuHuiguo $
 * 
 */
public interface ActivityManager {

	Activity getActivity(Long id);

	List<Activity> getAllActivity(int... rowStartIdxAndCount);

	void createActivity(Activity activity);

	void createActivity(User user, Site site, AuthAction action);

	void createActivity(User user, String url, AuthAction action);

	void updateActivity(Activity activity);

	void deleteActivity(Long id);

	void deleteActivity(Activity activity);
}
